import 'package:flutter_ok/manager/account_manager.dart';
import 'package:flutter_ok/page/home/home_binding.dart';
import 'package:flutter_ok/page/home/home_page.dart';
import 'package:flutter_ok/page/login/login_page.dart';
import 'package:flutter_ok/page/splash/splash_binding.dart';
import 'package:flutter_ok/page/splash/splash_page.dart';
import 'package:get/get.dart';

class Routes {
  ///路由名
  static const splash = '/splash';
  static const home = '/home';
  static const login = '/login';

  ///路由页面
  static final getPages = [
    GetPage(
      name: home,
      page: () => HomePage(),
      binding: HomeBinding(),
    ),
    GetPage(
      name: splash,
      page: () => SplashPage(),
      binding: SplashBinding(),
    ),
    GetPage(
      name: login,
      page: () => LoginPage(),
    ),
  ];

  ///路由拦截
  static routingInterceptor(Routing routing) {
    if (routing.current == home) {}
  }
}
